
axios.interceptors.request.use(config => {
// Do something before request is sent

config.header.aa = "haha"

return config;

},error => {
// Do something with request error
return Promise.reject(error);



});


axios.interceptors.response.use(response => {
// Do something before response is sent
console.log("拦截到了响应,响应输入如下:")
console.log(response)

return response;
},error => {
// Do something with response error
return Promise.reject(error);
});




